<template>
	<view class="order_express">
		<uni-steps :options="tracesData" direction="column" :active="1"></uni-steps>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tracesData:[],
				orderInfo:{},
			};
		},
		onLoad(opt) {
			this.id = opt.id
			this.get_info(id);
		},
		methods:{
			get_info(id){
				let obj = {...this.$api.orders}
				obj.url += '/get_order_info/'+id;
				this.$http(obj).then(res=>{
					res.data.delivery_list.forEach(item=>{
						this.tracesData.push({title:item.content,desc:item.time})
					})
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
page{
	background: #fff;
}
.order_express{
	border-top: 1px solid #efefef;
	background: #fff;
}
</style>
